/*
 *    Copyright (c) 2018-2025, daoism All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: daoism
 */

package com.mkh.st.admin.api.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 角色数据权限表
 *
 * @author daoism code generator
 * @date 2021-07-06 09:27:05
 */
@Data
@TableName("sys_user_role_scope")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "角色数据权限表")
@Accessors(chain = true)
public class SysUserRoleScope extends Model<SysUserRoleScope> {
	private static final long serialVersionUID = 1L;

    /**
     * 角色数据权限id
     */
    @TableId
    @ApiModelProperty(value="角色数据权限id")
    private Long id;
    /**
     * 角色id
     */
    @ApiModelProperty(value="角色id")
    private Long roleId;

    @ApiModelProperty(value="用户id")
    private Long userId;
    /**
     * 单据类型id
     */
    @ApiModelProperty(value="权限范围id")
    private Long scopeId;

    @ApiModelProperty(value="全部标识，0否1是")
    private Integer allFlag;
    /**
     * 权限范围id
     */
    @ApiModelProperty(value="具体公司id or业务站点id or供应商id or创建人；or采购组id，or客户id，or仓库id集合")
    private String ids;

}
